package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author lxp
 * @since 2024-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Violations对象", description="")
@AllArgsConstructor
@NoArgsConstructor
public class Violations extends Model<Violations> {

    private static final long serialVersionUID = 1L;

    @TableId("vio_id")
    private String vioId;

    private String violationType;

    private String violationCategory;

    private String studentId;

    private String name;

    private String college;

    private String major;

    private String grade;

    private String result;

    private LocalDateTime happenTime;

    private LocalDateTime enterTime;

    @TableField(exist = false)
    private String enterTimeArg;

    private LocalDateTime effectiveTime;

    private Integer punishmentDuration;

    private LocalDateTime unremindTime;

    @ApiModelProperty(value = "是否还在违规期限内")
    @TableField("is_enabled")
    private Boolean isEnabled;


    @Override
    protected Serializable pkVal() {
        return this.vioId;
    }

}